import Vue from 'vue'
import Router from 'vue-router'
//底部路由
// import footer from '@/components/footer'
//登陆_主页
// import login from '@/components/login/login'
//登陆
import login_land from '@/components/login/login_land'
import forgot_password from '@/components/login/forgot_password'
//注册
import register from '@/components/login/register'
import weixin from '@/components/login/weixin'
import about_class from '@/children/template/about_class.vue'
import collage from '@/children/template/collage.vue'
import main from '@/children/template/main.vue'
import main_coach from '@/children/main_center/main_coach'
import main_voucher from '@/children/main_center/main_voucher'
import main_course from '@/children/main_center/main_course'
import search_coach from '@/children/main_center/search_coach'
import doudle_routing from '@/children/main_center/doudle_routing'
import doudle_total from '@/children/main_center/doudle_total'
import doudle_pay from '@/children/main_center/doudle_pay'
import doudle_air_complete from '@/children/main_center/doudle_air_complete'
import doudle_already_complete from '@/children/main_center/doudle_already_complete'
import doudle_assess from '@/children/main_center/doudle_assess'
import doudle from '@/children/main_center/doudle'
import become_coach from '@/children/main_center/become_coach'
import shopping_cart from '@/children/main_center/shopping_cart'
import invitation_code from '@/children/main_center/invitation_code'
import contact_service from '@/children/main_center/contact_service'
import about_us from '@/children/main_center/about_us'
import main_money from '@/children/main_center/main_money'
import edit_profile from '@/children/main_center/edit_profile'
import select_address from '@/children/main_center/select_address'
import new_address from '@/children/main_center/new_address'
import edit_address from '@/children/main_center/edit_address'
import agree_ment from '@/children/main_center/agree_ment'
import agree_respon from '@/children/main_center/agree_respon'
import search_address from '@/children/main_center/search_address'
import search_address_two from '@/children/main_center/search_address_two'
import appointment_coach from '@/children/main_center/appointment_coach'
import about_coach from '@/children/about_coach/about_coach'
import reset_password from '@/components/login/reset_password'
import login_qq from '@/components/login/login_qq'
import shop_cart from '@/children/about_coach/shop_cart'
import my_order from '@/children/about_coach/my_order'
import pay from '@/children/about_coach/pay'
import pay_order from '@/children/about_coach/pay_order'
import shop_del from '@/children/about_coach/shop_del'
import coupon from '@/children/about_coach/coupon'
import coupon_workability from '@/children/about_coach/coupon_workability'
import coupon_already from '@/children/about_coach/coupon_already'
import coupon_overdue from '@/children/about_coach/coupon_overdue'
import consumer_details from '@/children/main_center/consumer_details'
import order_details from '@/children/main_center/order_details'
import Immediate_evaluation from '@/children/main_center/Immediate_evaluation'
import all_evaluation from '@/children/about_coach/all_evaluation'
import weixinPay from '@/components/login/weixinPay'
import collage_coach from '@/children/collage/collage_coach'
import collage_class from '@/children/collage/collage_class'
import collage_tem from '@/children/collage/collage_tem'
import collage_pay from '@/children/collage/collage_pay'
import collage_map from '@/children/collage/collage_map'
import collage_present from '@/children/collage/collage_present'
import collage_member from '@/children/collage/collage_member'
import specialWelfare from '@/children/collage/specialWelfare'
// import { resolve } from 'dns';
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/login',
			// component: login
			component:resolve => require(['@/components/login/login'],resolve)
		},
		{
			path: '/',
			// component: about_class
			component:resolve => require(['@/children/template/about_class'],resolve)

		},
		{
			path: '/footer',
			component:resolve => require(['@/components/footer'],resolve)
			// component: footer
		},
			{
			path: '/weixinPay',

			// component: weixinPay
			component:resolve => require(['@/components/login/weixinPay'],resolve)
		},
		{
			path: '/weixin',

			// component: weixin
			component:resolve => require(['@/components/login/weixin'],resolve)
		},
    {
      path: '/forgot_password',
	//   component: forgot_password
		 component:resolve => require(['@/components/login/forgot_password'],resolve)
    },
		{
			path: "/about_class",

			// component: about_class
			component:resolve => require(['@/children/template/about_class'],resolve)
		},
		{
			path: "/collage",
			// component: main
			component:resolve => require(['@/children/template/collage'],resolve)
		},
			{
			path: "/collage_class",
			// component: main
			component:resolve => require(['@/children/collage/collage_class'],resolve)
		},
	
		{
			path: "/collage_coach",
			// component: main
			component:resolve => require(['@/children/collage/collage_coach'],resolve)
		},
		{
			path: "/collage_pay",
			// component: main
			component:resolve => require(['@/children/collage/collage_pay'],resolve)
		},
		{
			path: "/collage_map",
			// component: main
			component:resolve => require(['@/children/collage/collage_map'],resolve)
		},
		{
			path: "/collage_present",
			// component: main
			component:resolve => require(['@/children/collage/collage_present'],resolve)
		},
		{
			path: "/collage_member",
			// component: main
			component:resolve => require(['@/children/collage/collage_member'],resolve)
		},
		{
			path: "/specialWelfare",
			// component: main
			component:resolve => require(['@/children/collage/specialWelfare'],resolve)
		},
		{
			path: "/main",
			// component: main
			component:resolve => require(['@/children/template/main'],resolve)
		},
		{
			path: "/",
			redirect: "/about_class"
			// component:resolve => require(['@/children/template/about_class'],resolve)
		},
		{
			path: "/main_coach",
			// component: main_coach
			component:resolve => require(['@/children/main_center/main_coach'],resolve)
		},
		{
			path: "/main_voucher",
			// component: main_voucher
			component:resolve => require(['@/children/main_center/main_voucher'],resolve)
		},
		{
			path: "/main_course",
			// component: main_course
			component:resolve => require(['@/children/main_center/main_course'],resolve)
		},
		{
			path: "/search_coach",
			// component: search_coach
			component:resolve => require(['@/children/main_center/search_coach'],resolve)
		},
		{
			path: "/doudle_routing",
			// component: doudle_routing,
			component:resolve => require(['@/children/main_center/doudle_routing'],resolve),
			children: [{
					path: "/doudle_total",
					// component: doudle_total
					component:resolve => require(['@/children/main_center/doudle_total'],resolve),
				},
				{
					path: "/doudle_pay",
					// component: doudle_pay
					component:resolve => require(['@/children/main_center/doudle_pay'],resolve),
				},
				{
					path: "/doudle_air_complete",
					// component: doudle_air_complete
					component:resolve => require(['@/children/main_center/doudle_air_complete'],resolve),
				},
				{
					path: "/doudle_already_complete",
					// component: doudle_already_complete
					component:resolve => require(['@/children/main_center/doudle_already_complete'],resolve),
				},
				{
					path: "/doudle_assess",
					// component: doudle_assess
					component:resolve => require(['@/children/main_center/doudle_assess'],resolve),
				},
				{
					path: "/",
					redirect: "/doudle_total"
				},

			]
		},
		{
			path: "/doudle",
			// component: doudle
			component:resolve => require(['@/children/main_center/doudle'],resolve),
		},
		{
			path: "/become_coach",
			// component: become_coach
			component:resolve => require(['@/children/main_center/become_coach'],resolve),
		},
		{
			path: "/shopping_cart",
			// component: shopping_cart
			component:resolve => require(['@/children/main_center/shopping_cart'],resolve),
		},
		{
			path: "/invitation_code",
			// component: invitation_code
			component:resolve => require(['@/children/main_center/invitation_code'],resolve),
		},
		{
			path: "/contact_service",
			// component: contact_service
			component:resolve => require(['@/children/main_center/contact_service'],resolve),
		},
		{
			path: "/about_us",
			// component: about_us,
			component:resolve => require(['@/children/main_center/about_us'],resolve),
			children: [{
					path: "/agree_ment",
					// component: agree_ment
					component:resolve => require(['@/children/main_center/agree_ment'],resolve),
				},
				{
					path: "/",
					redirect: "/agree_ment"
					// component:resolve => require(['@/children/main_center/doudle_routing'],resolve),
				},
				{
					path: "/agree_respon",
					// component: agree_respon
					component:resolve => require(['@/children/main_center/agree_respon'],resolve),
				},
			]
		},
		{
			path: "/main_money",
			// component: main_money
			component:resolve => require(['@/children/main_center/main_money'],resolve),
		},
		{
			path: "/edit_profile",
			// component: edit_profile
			component:resolve => require(['@/children/main_center/edit_profile'],resolve),
		},
		{
			path: "/select_address",
			// component: select_address
			component:resolve => require(['@/children/main_center/select_address'],resolve),
		},
		{
			path: "/new_address",
			// component: new_address
			component:resolve => require(['@/children/main_center/new_address'],resolve),
		},
		{
			path: "/edit_address",
			// component: edit_address
			component:resolve => require(['@/children/main_center/edit_address'],resolve),
		},
		{
			path: "/search_address",
			// component: search_address
			component:resolve => require(['@/children/main_center/search_address'],resolve),
		},
		{
			path: "/search_address_two",
			// component: search_address_two,
			component:resolve => require(['@/children/main_center/search_address_two'],resolve),
		},
		{
			path: "/appointment_coach",
			// component: appointment_coach
			component:resolve => require(['@/children/main_center/appointment_coach'],resolve),
		},
		{
			path: "/czpay",
			// component: appointment_coach
			component:resolve => require(['@/children/main_center/czpay'],resolve),
		},
		{
			path: "/login_land",
			// component: login_land
			component:resolve => require(['@/components/login/login_land'],resolve),
		},
		{
			path: "/register",
			// component: register
			component:resolve => require(['@/components/login/register'],resolve),
		},
		{
			path: "/about_coach",
			// component: about_coach
			component:resolve => require(['@/children/about_coach/about_coach'],resolve),
		},

		{
			path: "/reset_password",
			// component: reset_password
			component:resolve => require(['@/components/login/reset_password'],resolve),
		},
		{
			path: "/login_qq",
			// component: login_qq,
			component:resolve => require(['@/components/login/login_qq'],resolve),
		},
		{
			path: "/shop_cart",
			// component: shop_cart,
			component:resolve => require(['@/children/about_coach/shop_cart'],resolve),
		},
		{
			path: "/my_order",
			// component: my_order,
			component:resolve => require(['@/children/about_coach/my_order'],resolve),
		},
		{
			path: "/pay",
			// component: pay,
			component:resolve => require(['@/children/about_coach/pay'],resolve),
		},
		{
			path: "/pay_order",
			// component: pay_order,
			component:resolve => require(['@/children/about_coach/pay_order'],resolve),
		},
		{
			path: "/shop_del",
			// component: shop_del,
			component:resolve => require(['@/children/about_coach/shop_del'],resolve),
		},
		{
			path: "/coupon",
			// component: coupon,
			component:resolve => require(['@/children/about_coach/coupon'],resolve),
			children: [{
					path: "/coupon_workability",
					// component: coupon_workability,
					component:resolve => require(['@/children/about_coach/coupon_workability'],resolve),
				},
				{
					path: "/",
					redirect: "/coupon_workability"
				},
				{
					path: "/coupon_already",
					// component: coupon_already,
					component:resolve => require(['@/children/about_coach/coupon_already'],resolve),
				},
				{
					path: "/coupon_overdue",
					// component: coupon_overdue,
					component:resolve => require(['@/children/about_coach/coupon_overdue'],resolve),
				},
			]
		},

		{
			path: "/consumer_details",
			// component: consumer_details,
			component:resolve => require(['@/children/main_center/consumer_details'],resolve)
		},
		{
			path: "/order_details",
			// component: order_details,
			component:resolve => require(['@/children/main_center/order_details'],resolve)
		},
		{
			path: "/Immediate_evaluation",
			// component: Immediate_evaluation,
			component:resolve => require(['@/children/main_center/Immediate_evaluation'],resolve)
		},
		{
			path:"/all_evaluation",
			// component:all_evaluation
			component:resolve => require(['@/children/about_coach/all_evaluation'],resolve)
		}

	]
})
